package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_music_room_beauty_upgrade", desc = "妙音坊美女升级日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "music_beautyup")
public class LogMusicRoomBeautyUpgrade extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "美女ID", dataAttribute = "intimate_name")
    private int beautyId;
    @FieldTypeAnnotation(desc = "升级后等级", dataAttribute = "music_beautyuplv")
    private int level;
    @FieldTypeAnnotation(desc = "升级后总经验", dataAttribute = "music_beautyexp")
    private long exp;
    @FieldTypeAnnotation(desc = "消耗的道具")
    private String costItem;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogMusicRoomBeautyUpgrade(long userId, int beautyId, int level, long exp, String costItem) {
        this.userId = userId;
        this.beautyId = beautyId;
        this.level = level;
        this.exp = exp;
        this.costItem = costItem;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
